package com.ssy.lingxi.after.sale.model.constant;

import com.ssy.lingxi.common.language.LanguageHolder;

public enum PayExternalStateEnum {

    /**
     * 待支付
     */
    TO_BE_PAY(1, "待支付2"),
    /**
     * 待确认支付结果
     */
    TO_BE_CONFIRM(2, "待确认支付结果"),
    /**
     * 确认到账
     */
    CONFIRM_RECEIPT(3, "确认到账"),
    /**
     * 确认未到账
     */
    CONFIRM_NOT_RECEIPT(4, "确认未到账");

    private final Integer code;
    private final String message;

    PayExternalStateEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return LanguageHolder.getName(this.getDeclaringClass(), this.getCode());
    }
}
